package com.it.mapper.impl;

import com.it.mapper.T_Sys_UserMapper;
import com.it.pojo.T_Sys_User;
import org.mybatis.spring.SqlSessionTemplate;

import java.util.List;

public class T_Sys_UserMapperImpl implements T_Sys_UserMapper {
  private   SqlSessionTemplate sqlSessionTemplate;

    public SqlSessionTemplate getSqlSessionTemplate() {
        return sqlSessionTemplate;
    }

    public void setSqlSessionTemplate(SqlSessionTemplate sqlSessionTemplate) {
        this.sqlSessionTemplate = sqlSessionTemplate;
    }

    @Override
    public List<T_Sys_User> findAll() {
       T_Sys_UserMapper mapper = sqlSessionTemplate.getMapper(T_Sys_UserMapper.class);
        return mapper.findAll();
    }
}
